public class Student {


    //班级类
    private Classes classes;

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    @Override
    public String toString() {
        return "Student{" +
                "classes=" + classes +
                '}';
    }

    public void add() {
        System.out.println(classes);
    }
}
